package vip.xiaonuo.megvii.captures.model.base.define;

import java.util.*;

public class TargetTypeDefine {

    private static Map<String,String> map =  new LinkedHashMap<>();

    static {
        map.put("face","人脸");
        map.put("person","人");
        map.put("car","机动车");
        map.put("cycle","非机动车");
        map.put("plate","车牌");
        map.put("head","人头");
        map.put("flame","火焰");
        map.put("crowd","聚众整体");
        map.put("fighter","打架者");
        map.put("smog","烟雾");
        map.put("oil_spill","油品");
        map.put("fire_equipment","消防设备");
        map.put("trashbin","垃圾桶");
        map.put("mice","老鼠");
        map.put("sundry","杂物");
    }

    public static String getTargetAreaDesc(String key){
        return map.containsKey(key) ? map.get(key) : "";
    }

    public static List<Option> getOptions(){
        List<Option> options = new LinkedList<>();
        for (String key : map.keySet()) {
            options.add(new Option(key,map.get(key)));
        }
        return options;
    }

}
